﻿/** 
 *Copyright(C) 2018 by #COMPANY# 
 *All rights reserved. 
 *FileName:     #SCRIPTFULLNAME# 
 *Author:       #AUTHOR# 
 *Version:      #VERSION# 
 *UnityVersion：#UNITYVERSION# 
 *Date:         #DATE# 
 *Description:    
 *History: 
*/  

using System.Collections;
using System.Collections.Generic;
using UnityEngine;

// 动画的定义用构造体
public struct AnimData
{
    // 目标对象
    public GameObject targetObject;

    // 目标位置
    public Vector3 targetPosition;

    // 持续时间
    public float duration;

    public AnimData(GameObject target, Vector3 pos, float dur)
    {
        targetObject = target;
        targetPosition = pos;
        duration = dur;
    }
}